//
//  DXController.h
//  suremodv
//
//  Created by dd on 13-9-17.
//  Copyright (c) 2013年 xiaomuzhi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "DXUtil.h"
#import "DXButton.h"
#import "DXData.h"
#import "DXLog.h"
#import "DX.h"
#import "DXConst.h"
#import "AppDelegate.h"
#import "DXDB.h"
#import "AFNetworking.h"
#import "DXNet.h"
#import "DXNavigationController.h"

#define LOADING_MESSAGE_LOGIN               @"登录中..."
#define LOADING_MESSAGE_NORMAL              @"请求数据中..."
#define NET_REQUEST_FAIL                    @"请求失败"

@interface DXController : UIViewController<UIGestureRecognizerDelegate>
{
    UIScrollView *_holder;
    DXData *_data;
    double _screenAvailableHeight;
    double _screenHeight;
    AppDelegate *_ad;
    
    UIView *_loadingView;
    
    BOOL _canSubmit;
    
    double _scrollFlagY;
    double _lastScrollY;
    double _kbHeight;
}

- (void)updateScroll;
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch;

@end
